package com.boot.service.impl;

import com.boot.dao.RoleMapper;
import com.boot.model.Role;
import com.boot.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zhengshunzhi
 * @Date: 2018/9/4 15:47
 * @Description:
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> findRolesByUid(long uId) {
        return roleMapper.findRolesByUid(uId);
    }
}

